package com.bianguo.android.recyclerlibrary.listener;

import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.RecyclerView;

import com.bianguo.android.recyclerlibrary.adapter.RViewAdapter;

public interface RViewCreate<T> {

    // 创建下拉刷新控件SwipeRefreshLayout
    SwipeRefreshLayout createSwipeRefreshLayout();

    // SwipeRefresh下拉的颜色
    int[] colorRes();

    // 创建RecyclerView
    RecyclerView createRecyclerView();

    // 创建Adapter
    RViewAdapter<T> createRViewAdapter();

    // 创建LayoutManager
    RecyclerView.LayoutManager createLayoutManager();

    // 添加分割线
    RecyclerView.ItemDecoration createItemDecoration();

    // 接口请求的开始页码，page
    int starPageNumber();

    // 是否支持分页（上拉加载更多）
    boolean isSupportPaging();
}
